reftests: Improve workaround for GtkGrid bug
authorBenjamin Otte <otte@redhat.com>
Thu, 10 Jul 2014 12:16:06 +0000 (14:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 10 Jul 2014 16:56:34 +0000 (18:56 +0200)
... so that it works with wide separators. Or rather: with separators
that don't request 1px size but any other number. Do that by making the
placeholder request the same size by indeed stuffing (hidden) separators
in it.

testsuite/reftests/separator-size.ui

index 006c44ec15965afa8aeb82ea733b545186a356d7..ae109b609e619e578a08e0bd5f4878dce3014ce2 100644 (file)
         <!-- BEGIN REMOVE WHEN GRID FIXED -->
 
         <child>
-          <object class="GtkBox" id="remove-me-when-grid-is-fixed">
+          <object class="GtkNotebook" id="notebook1">
             <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="width-request">1</property>
-            <property name="height-request">1</property>
+            <property name="can_focus">True</property>
+            <property name="show_tabs">False</property>
+            <property name="show_border">False</property>
+            <child>
+              <object class="GtkBox" id="box5">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="orientation">vertical</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkSeparator" id="separator5">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkSeparator" id="separator6">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="orientation">vertical</property>
+              </object>
+              <packing>
+                <property name="position">2</property>
+              </packing>
+            </child>
           </object>
           <packing>
             <property name="left_attach">1</property>
             <property name="top_attach">1</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
           </packing>
         </child>